home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / linedrw.exe / BOX.H < prev    next >
Text File  |  1991-11-22  |  2KB  |  45 lines

  1. // ────────────────────────────────────────────────────────────────────────────
  2. // BOX.H 
  3. // ────────────────────────────────────────────────────────────────────────────
  4. // Header file for displaying line draw characters / boxes etc
  5. // for use in windows and menus.
  6. //
  7. // box[0]     Displays Blank spaces
  8. // box[1]    Displays Single Lines
  9. // box[2]    Displays Double Lines
  10. // box[3]    Displays Double Horizontals and Single Verticals
  11. // box[4]    Displays Single Horizontals and Double Verticals
  12. //
  13. // eg         printf("%c", box[0][6]); 
  14. //
  15. // Would display ASCII char 206 = '╬'
  16. //
  17. // The advantage of using this method is that once you have written a general 
  18. // routine for creating boxes etc. You can draw different styles simply by 
  19. // changing one value.
  20. //
  21. // ────────────────────────────────────────────────────────────────────────────
  22. // Written by Steve Raeburn 
  23. // 
  24. // I can be contacted on CIX as sraeburn or on Compuserve as 100015,3620
  25. // 
  26. // This code is freeware and can be re-hashed, re-distributed as you see fit !
  27. // ────────────────────────────────────────────────────────────────────────────
  28.  
  29. char box[5][11] = {
  30.  
  31. //       0    1    2    3    4     5    6    7    8    9    10
  32. //
  33. //       ┌    ─    ┬    ┐    │    ├    ┼    ┤    └    ┴    ┘
  34.  
  35.     32,  32,  32,  32,  32,  32,  32,  32,  32,  32,  32,          // 0
  36.     218, 196, 194, 191, 179, 195, 197, 180, 192, 193, 217,        // 1
  37.     201, 205, 203, 187, 186, 204, 206, 185, 200, 202, 188,        // 2
  38.     213, 205, 209, 184, 179, 198, 216, 181, 212, 207, 190,        // 3
  39.     214, 196, 210, 183, 186, 199, 215, 182, 211, 208, 189        // 4
  40.     };
  41.  
  42.  
  43.  
  44.  
  45.